package com.yue.spdatasource.controller;

import com.yue.spdatasource.domain.User;
import com.yue.spdatasource.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;

    @RequestMapping("/getUser")
    public User findUser() {
      return userService.findUser();
    }
    @RequestMapping("/getUser2")
    public User findUser2() {
        return userService.findUser2();
    }
}
